import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'
import into from './modules/into'
import manage from './modules/manage'
import data from './modules/data'
import audit from './modules/audit'
import ads from './modules/ads'
import system from './modules/system'
import home from './modules/home'
// default router permission control
// import permission from './modules/permission'

// dynamic router permission control (Experimental)
import permission from './modules/async-router'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    manage,
    into,
    data,
    audit,
    ads,
    system,
    home,
    permission
  },
  state: {
    baseUrl: 'http://yzm-web-in.tkuan.com.cn',
    baseApi: 'http://yzm-web-in.tkuan.com.cn/yzm-web-api',
    ApiForm: '04',
    ApiKey: '73FB455D9E329FBE2998E987C82E007F'
  },
  mutations: {
  },
  actions: {

  },
  getters
})
